/**
 * @projectName study_java
 * @package State
 * @className State.Work
 */
package State;

import lombok.Data;

/**
 * Work
 * @description
 * @author answer_wx
 * @date 2022/6/29 15:42
 * @version 1.0
 */
@Data
public class Work {
    private IState current;
    private int hour;
    private boolean finish;

    public Work() {
        current = new MorningWork();
    }

    public void writeProgram() {
        current.writeProgram(this);
    }
}